.passports {
    border-collapse: collapse;
    width: 18cm;
    height: 24cm;
    margin: 0 auto;
}

.passports tr, .passports td, .passports th {
    margin: 0;
    border-collapse: collapse;
}

.passport {
    border: 1px solid #000;
    width: 9cm;
    max-width: 9cm;
    min-width: 9cm;
    height: 6cm;
    max-height: 6cm;
    min-height: 6cm;
    background: url("../../../img/wm_s.png") repeat;
}

.passport .headPasport {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 15%;
    border-bottom: 1px solid black;
}

.passport .iconCategorization {
    float: right;
    height: 11%;
    padding-right: 3px;
    padding-top: 2px;
    width: 10%;
}

.passport .iconCategorization i {
    font-size: 2.5rem;
}

.passport .headPasport div:first-child {
    width: 50%;
    float: left;
    overflow: hidden;
    display: inline-block;
    padding: 0;
}

#result .passport .headPasport div:first-child img {
    height: 23px;
    margin-top: 4px;
}

.passport .headPasport div:nth-child(2) {
    width: 39%;
    float: left;
}

.passport .headPasport div:nth-child(2) p {
    margin-bottom: 0;
    text-align: center; 
    font-size: 1.8rem; 
    font-weight: bold;
    padding-top: 3px;
}

.passport .footPassport {
    text-align: center; 
    font-size: 9px; 
    width: 100%;
    height: 5%;
    border-top: 1px solid black;
}

.passport .bodyPassport {
    height: 80%;
    padding: 0.1mm 2mm 1mm 2mm;
}

.passport .bodyPassport div:first-child {
    width: 100%;
}

.passport .bodyPassport div:first-child .mla {
    width: 80%;
    text-transform: uppercase;
    float: left;
    font-size: 1rem;
    height: 14px;
    overflow: hidden;
}

.passport .bodyPassport div:first-child .numNom {
    width: 19%;
    text-align: right;
    float: right;
    font-size: 1rem;
    height: 14px;
}

.passport .bodyPassport .nomAsc {
    width: 100%;
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 15px;
}

.passport .bodyPassport .tablaCert {
    width: 100%; 
    margin-bottom: 0;
    height: 77%;
}

.passport .bodyPassport .tablaCert table {
    border-collapse: collapse;
    border: 1px solid black;
    font-size: 8px;
}

.passport .bodyPassport .tablaCert table td {
    
}

.passport .bodyPassport .tablaCert table th {
    font-weight: bold;
}

.passport .bodyPassport .tablaCert table tr, .passport .bodyPassport .tablaCert table td, .passport .bodyPassport .tablaCert table th {
    border-collapse: collapse;
    border: 1px solid black;
}


.passport .bodyPassport .tablaCert table:first-child  {
    float: left;
}

.passport .bodyPassport .tablaCert table:last-child  {
    float: right;
    width: 49%;
}

.passport .bodyPassport .tablaCert table .fechaCert {
    padding: 0;
    margin: 0;
}

.passport .bodyPassport .tablaCert table .fechaFinCert {
    color: red;
    padding: 0;
    margin: 0;
}

.passport .bodyPassport .printDate {
    font-weight: bold;
    padding-right: 10px;
    text-align: right;
    margin-bottom: 0;
    font-size: 0.9rem;
    margin-top: 1px;
}

.passport .nameWork {
    margin: 0;
    width: 100%;
    height: 10px;
    overflow: hidden;
}

.backPassports {
    display: none;
    border-collapse: collapse;
    width: 18cm;
    height: 24cm;
    margin: 0 auto;
}

.backPassport {
    border: 1px none #000;
    width: 9cm;
    max-width: 9cm;
    min-width: 9cm;
    height: 6cm;
    max-height: 6cm;
    min-height: 6cm;
}

.backPassport .headBPassport {
    height: 15%;
    text-align: center; 
    font-size: 1.8rem; 
    font-weight: bold;
    padding-top: 3px;
}

.backPassport .bodyBPassport {
    height: 93%;
    text-align: center; 
    font-size: 1rem;
    padding: 2mm;
}

.backPassport .bodyBPassport .qrcode {
    padding-left: 10px;
}

.backPassport .bodyBPassport div:first-child {
    font-size: 0.9rem;
    width: 59%;
    float: left;
}

.backPassport .bodyBPassport div:nth-child(2) {
    width: 39%;
    float: right;
}

.backPassport .bodyBPassport div:nth-child(3) {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 5px;
    width: 100%;
    display: inline-block;
}

.backPassport .bodyBPassport .bcd {
    width: 100%;
}

.backPassport .footBPassport {
    height: 7%;
    text-align: center; 
    font-size: 0.9rem; 
}

.backPassport .iconCategorization {
    float: right;
    height: 11%;
    padding-right: 3px;
    padding-top: 2px;
}

#waiting {
    display: block;
    text-align: center;
    overflow: hidden;
    margin-bottom: 50px;
}

#waiting i {
    font-size: 5rem;
    color: darkgray;
}

@page {
    margin: 1cm 1.3cm;
}

@media print {
    body {
        padding: 0 !important;
    }
    
    .passport {
        background: url("../../../img/wm_s.png") repeat !important; 
    }

    .backPassports {
        display: block;
    }
}